<template>
    <div class="brandItem">
        <span v-if="!to">
            <slot></slot>
        </span>
        <router-link :to="to" v-if="to" class="router-link">
            <slot></slot>
        </router-link>
        <i class="iconfont icon-angle-right"></i>
    </div>
</template>


<script>
export default {
    props:{
        to:String
    }
}
</script>


<style lang="scss" >
    .router-link{
        text-decoration: none;
        color: black;
    }
</style>